FROM mysql:5.7

ARG PINPOINT_VERSION=${PINPOINT_VERSION:-1.8.4}

COPY docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql CreateTableStatement-mysql.sql
COPY docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql SpringBatchJobRepositorySchema-mysql.sql

RUN cp *.sql /docker-entrypoint-initdb.d/ \
	&& sed -i '/^--/d' /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql \
	&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql
